šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

postcss-zindex

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-zindex

Reduce z-index values with PostCSS.

1.1.3
Source
npm
Version published
Weekly downloads
823K
8.82%
Maintainers
2
Weekly downloads
Ā 
Created

What is postcss-zindex?

The postcss-zindex package is a PostCSS plugin that reduces z-index values in your CSS files. It helps to minimize the number of different z-index values used, making your CSS more maintainable and reducing the risk of z-index conflicts.

What are postcss-zindex's main functionalities?

Reduce z-index values

This feature reduces the z-index values in your CSS to a smaller range, making it easier to manage and reducing the likelihood of conflicts.

/* Input CSS */
body {
  z-index: 10;
}
.header {
  z-index: 100;
}
.footer {
  z-index: 1000;
}

/* Output CSS after postcss-zindex */
body {
  z-index: 1;
}
.header {
  z-index: 2;
}
.footer {
  z-index: 3;
}

Other packages similar to postcss-zindex

Keywords

css

FAQs

Package last updated on 13 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts